package response

import "time"

type User struct {
	ID           uint       `json:"ID" form:"ID"`
	Points       uint       `json:"points" form:"points" gorm:"column:points;"`
	InviteUserID uint       `json:"invite_user_id" form:"invite_user_id" gorm:"column:invite_user_id;"`
	StewardID    uint       `json:"steward_id" form:"steward_id" gorm:"column:steward_id;"`
	Steward      string     `json:"steward" form:"steward"`
	StewardPhone string     `json:"stewardPhone" form:"stewardPhone" gorm:"column:stewardPhone;"`
	Phone        string     `json:"phone" form:"phone" gorm:"column:phone;"`
	Name         string     `json:"name" form:"name" gorm:"column:name;"`
	Avatar       string     `json:"avatar" form:"avatar" gorm:"column:avatar;"`
	Types        uint       `json:"types" form:"types" gorm:"column:types;"`
	Sex          uint       `json:"sex" form:"sex" gorm:"column:sex;"`
	Birthday     time.Time  `json:"birthday" form:"birthday" gorm:"column:birthday;"`
	CreatedAt    time.Time  `json:"createdAt" form:"created_at" gorm:"column:created_at;"`
	ExpiredAt    *time.Time `json:"expiredAt" form:"expiredAt" gorm:"column:expiredAt;"`
	ReportTime   time.Time  `json:"reportTime" form:"reportTime" gorm:"column:reportTime;"`
	Physique     uint       `json:"physique" form:"physique" gorm:"->;column:physique;"`
	ProvinceName string     `json:"province" form:"province" gorm:"column:province;"`
	CityName     string     `json:"city" form:"city" gorm:"column:city;"`
	AreaName     string     `json:"area" form:"area" gorm:"column:area;"`
}

func (User) TableName() string {
	return "fd_user"
}
